<div id="header">
	<h1>List Users</h1>
</div>

<div class="colmask threecol">
	<div class="colmid">
		<div class="colleft">
			<div class="col1">
				<table style="width: 100%">
					<tr>
						<th colspan="4">Name</th>
					</tr>

					<% @users.each do |user| %>
					<tr>
						<td><%=h user.name %></td>
						<td><%= link_to 'More...', user %></td>
						<td><%= link_to 'Edit User', edit_user_path(user) %></td>
						<td><%= link_to 'Delete User', user, :confirm => 'Are you sure?', :method => :delete %></td>
					</tr>
					<% end %>
				</table>
			</div>
			<div class="col2">
				<ul>
					<li><%= link_to "Vocabulary Words", vocabularies_path %></li>
					<li>Lessons</li>
					<li>Flash Cards</li>
					<li>Audio Files</li>
					<li>Video Clips</li>
				</ul>
			</div>
			<div class="col3">
				<ul>
					<% if User.find(session[:user_id]).is_Administrator? %>
						<li><%= link_to 'Create User', :controller => "users", :action => "new" %></li>
						<li>List Users</li>
					<% end %>
					<li><%= link_to 'Logout', :controller => "admin", :action => "logout" %></li>
				</ul>
				<p style="color: green"><%= notice %></p>
			</div>
		</div>
	</div>
</div>